import junit.framework.Assert;
import junit.framework.TestCase;

import org.junit.Test;


public class Testeo extends TestCase{

	Monitor monitor = new Monitor();
	SopaDeLetras sopa = new SopaDeLetras();
	

	int disparo[]={0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};

	
	public void testDisparo() {  
		boolean valor = this.monitor.probar_disparo(disparo);
        Assert.assertTrue(valor);
		}
		
	@Test
	public void testBusqueda(){
		String v[];
		v = new String[10];
		v[0]="JUAN";
		v[1]="INES";
		v[2]="CARMEN";
		v[3]="JOSE";
		v[4]="MARTA";
		v[5]="CARLOS";
		v[6]="FELIPE";
		v[7]="ANA";
		v[8]="PEPE";
		v[9]="ROSA";
		for(int i=0; i<10; i++){
			boolean ocurrencia = this.sopa.ocurrenciaDelNombre(v[i]);
			Assert.assertTrue(ocurrencia);
			//Assert.assertFalse(false);
		}
		
	}
	

	
}